package com.chen.service.serviceimpl;

import com.chen.dao.LeaveDao;
import com.chen.pojo.Leave;
import com.chen.service.LeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeaveServiceImpl implements LeaveService {
    @Autowired
    private LeaveDao leaveDao;

    @Override
    public void addLeave(Leave leave) {
        leaveDao.addLeave(leave);
    }

    @Override
    public List<Leave> getLeaveList() {
        return leaveDao.getLeaveList();
    }
}
